home *** CD-ROM | disk | FTP | other *** search
/ APDL Eductation Resources / APDL Eductation Resources.iso / programs / utilities / fontmgr2 / !FontMGR2 / TechText / UsingIt < prev   
Encoding:
Text File  |  1995-03-30  |  1.3 KB  |  53 lines

  1. Using the Font Manager from your own Applications
  2. ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
  3.  
  4. --------------------------------------------------
  5.  
  6. Because I have made it so very easy for you to
  7. create your own Font Manager scripts, it should
  8. not be too much trouble to integrate it's
  9. functions into your own applications.  What goes
  10. hand-in-hand with this is the freedom I have
  11. given you to supply this application with your
  12. own software packages.  This means that you can
  13. be sure the user of your software has !FontMGR2.
  14.  
  15. --------------------------------------------------
  16.  
  17. If <FontMGR2$Dir> doesn't exist, then the user
  18. hasn't got, or has decided not to use !FontMGR2.
  19. Oh well, there is little one can do for such
  20. people!
  21.  
  22. If <FontMGR2$Dir> does exist then you need to
  23. make a simple script describing which fonts you
  24. wish to FontHunt for such as the one shown below:
  25.  
  26. FMGR
  27.  
  28. *FONTS*
  29. {
  30.  Bodoni
  31.  Caslon
  32.  Becker
  33.  Revue
  34. }
  35.  
  36. *END*
  37.  
  38. Then investiagate the value of "F$Running".  If it
  39. is "FALSE" then common sense would tell you
  40. !FontMGR2 isn't currently running.  So you need to
  41. execute a command such as the one shown below,
  42. using the SWI "Wimp_StartTask":
  43.  
  44.  <FontMGR2$Dir>.Resources.BootFonts <Wimp$Scrap>
  45.  
  46. Otherwise you need to execute a command such as
  47. the one shown below via the SWI "OS_CLI":
  48.  
  49.  Filer_Run <Wimp$Scrap>
  50.  
  51. --------------------------------------------------
  52.  
  53.